package com.design.behavior.mediator.cainiao;

import java.util.Date;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.mediator.cainiao
 * @ClassName: ChatRoom
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/11/23 0023 21:06
 */
//步骤 1
//创建中介类。
public class ChatRoom {
    public static void showMessage(User user, String message){
        System.out.println(new Date().toString()
                + " [" + user.getName() +"] : " + message);
    }
}
